package ai.people.netmon.framework.domain.system.request;

import ai.people.netmon.framework.domain.system.entity.NmSystemRoleUser;
import ai.people.netmon.framework.model.request.PageKeyWordsRequest;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.StringUtils;

/**
 * 角色用户请求
 *
 * @author zhenglin
 * @since 2022/3/22
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SysRoleUserRequest extends PageKeyWordsRequest {

    /**
     * 搜索关键字
     * @ignore
     */
    private String searchKeywords;


    public LambdaQueryWrapper<NmSystemRoleUser> createQuery(){
        LambdaQueryWrapper<NmSystemRoleUser> queryWrapper = Wrappers.lambdaQuery();
        String searchKeywords = this.getSearchKeywords();
        if (StringUtils.isNotBlank(searchKeywords)){

        }
        return queryWrapper;
    }
}
